QT       += core gui network printsupport sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    appinit.cpp \
    canthread.cpp \
    iconhelper.cpp \
    main.cpp \
    mainwindow.cpp \
    mydata.cpp \
    qcustomplot.cpp \
    rechargethread.cpp

HEADERS += \
    appinit.h \
    canthread.h \
    iconhelper.h \
    mainwindow.h \
    mydata.h \
    qcustomplot.h \
    rechargethread.h

FORMS += \
    mainwindow.ui

RC_ICONS = yfy.ico

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES +=

RESOURCES += \
    recs.qrc

win32: LIBS += -L$$PWD/CanLib/ -lControlCAN
INCLUDEPATH += $$PWD/CanLib
DEPENDPATH += $$PWD/CanLib

#一次性引入自定义控件的所有头文件 懒得一个个拷贝
INCLUDEPATH += $$PWD/quc/include

#不同的构建套件 debug release 依赖不同的链接库
CONFIG(debug, debug|release){
LIBS += -L$$PWD/quc/ -lqucd
} else {
LIBS += -L$$PWD/quc/ -lquc
}
